﻿using System.Data;
using System.Drawing;
using System;

namespace Home.Haushalt.Lib.Element
{
    /// <summary>
    /// 
    /// </summary>
    public class ChangeBackup : ElementBase
    {
        #region CONSTANTS
        public new static readonly Type ElementType = typeof(ChangeBackup);

        /// <summary></summary>
        public class Fields
        {
        }
        #endregion CONSTANTS

        /// <summary>
        /// 
        /// </summary>
        public ChangeBackup() : base() { }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="parentDataRow"></param>
        public ChangeBackup(DataRow parentDataRow) : base(parentDataRow) { }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override string ElementXsd
        {
            get
            {
                return
                    "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
                    "<xs:schema attributeFormDefault=\"unqualified\" elementFormDefault=\"qualified\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">" +
                    "  <xs:include schemaLocation=\"elementtypes.xsd\"/>" +
                    "  <xs:element name=\"Table\">" +
                    "    <xs:complexType>" +
                    "     <xs:sequence>" +
                    "        <xs:choice maxOccurs=\"unbounded\">" +
                    "          <xs:element name=\"Date\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"DateElement\"/>" +
                    "          <xs:element name=\"Document\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"DocumentElement\"/>" +
                    "          <xs:element name=\"Gruppe\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"GroupElement\"/>" +
                    "          <xs:element name=\"Opponent\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"OpponentElement\"/>" +
                    "          <xs:element name=\"Page\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"PageElement\"/>" +
                    "          <xs:element name=\"Posten\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"PostenElement\"/>" +
                    "          <xs:element name=\"Member\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"MemberElement\"/>" +
                    "          <xs:element name=\"Direction\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"DirectionElement\"/>" +
                    "          <xs:element name=\"Way\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"WayElement\"/>" +
                    "          <xs:element name=\"Own\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"OwnElement\"/>" +
                    "          <xs:element name=\"Docutype\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"DocutypeElement\"/>" +
                    "          <xs:element name=\"Opponenttype\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"OpponenttypeElement\"/>" +
                    "          <xs:element name=\"Postengruppesumtype\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"PostengruppesumtypeElement\"/>" +
                    "          <xs:element name=\"Saldotype\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"SaldotypeElement\"/>" +
                    "          <xs:element name=\"Validity\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"ValidityElement\"/>" +
                    "          <xs:element name=\"FileType\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"FileTypeElement\"/>" +
                    "          <xs:element name=\"Postengroup\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"PostengroupElement\"/>" +
                    "          <xs:element name=\"FinAccount\" minOccurs=\"0\" maxOccurs=\"unbounded\"  type=\"FinAccountElement\"/>" +
                    "        </xs:choice>" +
                    "      </xs:sequence>" +
                    "    </xs:complexType>" +
                    "  </xs:element>" +
                    "</xs:schema>";
            }
        }

    }
}
